//package bot.controller;
//
//import com.rabbitmq.client.ConnectionFactory;
//import org.springframework.amqp.core.AmqpTemplate;
//import org.springframework.amqp.core.Message;
//import org.springframework.amqp.core.MessageProperties;
//import org.springframework.beans.factory.annotation.Autowired;
//
//import java.sql.Connection;
//
//public class MqController {
//    @Autowired
//    private AmqpTemplate amqpTemplate;
//    public String newMq(){
////        ConnectionFactory connectionFactory = new ConnectionFactory();
////        connectionFactory.setHost("127.0.0.1");
////        connectionFactory.setPort(15672);
//        Message message = new Message("消息内容".getBytes(),new MessageProperties());
//        amqpTemplate.send("",message);
//        return "成功";
//    }
//}
